package com.gis.bigdata.spark.sql

import org.apache.spark.SparkConf
import org.apache.spark.sql.SparkSession

/**
 * @author LnnuUser
 * @create 2021-09-02-下午8:16
 */
object Spark01_SparkSQL_Basic {

  def main(args: Array[String]): Unit = {

    //  TODO 创建SparkSQL的运行环境
    val sparkConf: SparkConf = new SparkConf().setMaster("local[*]").setAppName("sparkSQL")
    val spark = SparkSession.builder().config(sparkConf).getOrCreate()



    // TODO 执行逻辑操作


    // TODO 关闭环境
    spark.close()

  }

}
